Temporary Variable is Used for Several Purposes (TVUSP)

Description:

TVUSP detects if the same temporary variable is used for several different purposes.

Incorrect:

int index = bases + offs;
int val = arr[index];
for (index = 0; index < arr.Length; index++) {
    arr[index] = val;
}  

Correct:

int index = bases + offs;
int val = arr[index];
for (int i = 0; i < arr.Length; i++) {
    arr[i] = val;
}  

Refactoring: